package com;

import java.time.LocalDateTime;
import java.util.List;
import java.util.UUID;

public class Ticket {
    private String ticketId;
    private Schedule schedule;
    private List<Seat> seats;
    private double price;
    private boolean isChildTicket;
    private boolean isRefunded;
    private LocalDateTime refundTime;
    private double refundFee;

    public Ticket(Schedule schedule, List<Seat> seats,
                  double price, boolean isChildTicket) {
        this.ticketId = UUID.randomUUID().toString();
        this.schedule = schedule;
        this.seats = seats;
        this.price = price;
        this.isChildTicket = isChildTicket;
        this.isRefunded = false;                        }

    public String getTicketId() { return ticketId; }
    public Schedule getSchedule() { return schedule; }
    public List<Seat> getSeats() { return seats; }
    public double getPrice() { return price; }
    public boolean isChildTicket() { return isChildTicket; }
    public boolean isRefunded() { return isRefunded; }
    public void setRefunded(boolean refunded) { isRefunded = refunded; }
    public LocalDateTime getRefundTime() { return refundTime; }
    public void setRefundTime(LocalDateTime refundTime) { this.refundTime = refundTime; }
    public double getRefundFee() { return refundFee; }
    public void setRefundFee(double refundFee) { this.refundFee = refundFee; }
                     }